<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Moe Exercises|Exercise 39</title>
	</head>
<body>
<p>This function will change the input to uppercase.</p>
Enter your name: <input type="text" id="fname" onchange="myFunction()"/>
<script>
	function myFunction()
	{
		var x=document.getElementById("fname");
		x.value=x.value.toUpperCase();
	}
</script>
</body>
</html>